package com.leyantech.ecp.agenx.common.entity.reply;

import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import lombok.Setter;

/**
 * @author dongxu.ma, {@literal <dongxu.ma@leyantech.com>}
 * @date 2022-06-20.
 */
@Setter
public class ReplyCtx {

  private boolean canReply;
  private String reason;
  private String buyerEmotion;
  private String customerQuery;
  private JsonArray otherReplyInfoList = new JsonArray();

  public JsonObject toJsonObject() {
    return new JsonObject()
        .put("canReply", canReply)
        .put("reason", reason)
        .put("buyerEmotion", buyerEmotion)
        .put("customerQuery", customerQuery)
        .put("otherReplyInfoList", otherReplyInfoList);
  }

}
